home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / res / EditorOverride.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2008-05-07  |  10.5 KB  |  364 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-1999
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  26.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. *|* {
  39.   -moz-user-modify: read-write;
  40. }
  41.  
  42. /* Styles to alter look of things in the Editor content window 
  43.  *  that should NOT be removed when we display in completely WYSIWYG 
  44.  *  "Browser Preview" mode.
  45.  *  Anything that should change, like appearance of table borders
  46.  *  and Named Anchors, should be placed in EditorContent.css instead of here.
  47. */
  48.  
  49. /* Primary cursor is text I-beam */
  50.  
  51. ::-moz-canvas, a:link {
  52.   cursor: text;
  53. }
  54.  
  55. /* Use default arrow over objects with size that 
  56.    are selected when clicked on.
  57.    Override the browser's pointer cursor over links
  58. */
  59.  
  60. img, img[usemap], area,
  61. object, object[usemap], 
  62. applet, hr, button, input, isindex, textarea, select,
  63. a:link img, a:visited img, a:active img,
  64. a[name]:-moz-only-whitespace {
  65.   cursor: default;
  66. }
  67.  
  68. a:visited, a:active {
  69.   cursor: text;
  70. }
  71.  
  72. /* Prevent clicking on links from going to link */
  73. a:link img, a:visited img {
  74.   -moz-user-input: none;
  75. }
  76.  
  77. /* We suppress user/author's prefs for link underline, 
  78.    so we must set explicitly. This isn't good!
  79. */
  80. a:link {
  81.   text-decoration: underline -moz-anchor-decoration;
  82.   color: -moz-hyperlinktext;
  83. }
  84.  
  85. /* Allow double-clicks on these widgets to open properties dialogs
  86.    XXX except when the widget has disabled attribute */
  87. input, button, textarea {
  88.   -moz-user-select: all !important;
  89.   -moz-user-input: auto !important;
  90.   -moz-user-focus: none !important;
  91. }
  92.  
  93. /* XXX Still need a better way of blocking other events to these widgets */
  94. select, input[disabled], input[type="checkbox"], input[type="radio"], input[type="file"] {
  95.   -moz-user-select: all !important;
  96.   -moz-user-input: none !important;
  97.   -moz-user-focus: none !important;
  98. }
  99.  
  100. isindex[prompt]
  101. {
  102.   -moz-user-select: none !important;
  103.   -moz-user-input: none !important;
  104.   -moz-user-focus: none !important;
  105. }
  106.  
  107. input[type="hidden"] {
  108.   border: 1px solid black !important;
  109.   visibility: visible !important;
  110. }
  111.  
  112. label {
  113.     -moz-user-select: all !important;
  114. }
  115.  
  116. ::-moz-display-comboboxcontrol-frame {
  117.   -moz-user-select: text !important;
  118. }
  119.  
  120. option {
  121.   -moz-user-select: text !important;
  122. }
  123.  
  124. #mozToc.readonly {
  125.   -moz-user-select: all !important;
  126.   -moz-user-input: none !important;
  127. }
  128.  
  129. /* the following rules are for Image Resizing */
  130.  
  131. span[\_moz_anonclass="mozResizer"] {
  132.   width: 5px;
  133.   height: 5px;
  134.   position: absolute;
  135.   border: 1px black solid;
  136.   background-color: white;
  137.   -moz-user-select: none;
  138.   z-index: 2147483646; /* max value -1 for this property */
  139. }
  140.  
  141. /* we can't use :active below */
  142. span[\_moz_anonclass="mozResizer"][\_moz_activated],
  143. span[\_moz_anonclass="mozResizer"]:hover {
  144.   background-color: black;
  145. }
  146.  
  147. span[\_moz_anonclass="mozResizer"].hidden,
  148. span[\_moz_anonclass="mozResizingShadow"].hidden,
  149. img[\_moz_anonclass="mozResizingShadow"].hidden,
  150. span[\_moz_anonclass="mozGrabber"].hidden,
  151. span[\_moz_anonclass="mozResizingInfo"].hidden,
  152. a[\_moz_anonclass="mozTableRemoveRow"].hidden,
  153. a[\_moz_anonclass="mozTableRemoveColumn"].hidden {
  154.   display: none !important;
  155. }
  156.  
  157. span[\_moz_anonclass="mozResizer"][anonlocation="nw"] {
  158.   cursor: nw-resize;
  159. }
  160. span[\_moz_anonclass="mozResizer"][anonlocation="n"] {
  161.   cursor: n-resize;
  162. }
  163. span[\_moz_anonclass="mozResizer"][anonlocation="ne"] {
  164.   cursor: ne-resize;
  165. }
  166. span[\_moz_anonclass="mozResizer"][anonlocation="w"] {
  167.   cursor: w-resize;
  168. }
  169. span[\_moz_anonclass="mozResizer"][anonlocation="e"] {
  170.   cursor: e-resize;
  171. }
  172. span[\_moz_anonclass="mozResizer"][anonlocation="sw"] {
  173.   cursor: sw-resize;
  174. }
  175. span[\_moz_anonclass="mozResizer"][anonlocation="s"] {
  176.   cursor: s-resize;
  177. }
  178. span[\_moz_anonclass="mozResizer"][anonlocation="se"] {
  179.   cursor: se-resize;
  180. }
  181.  
  182. span[\_moz_anonclass="mozResizingShadow"],
  183. img[\_moz_anonclass="mozResizingShadow"] {
  184.   outline: thin dashed black;
  185.   -moz-user-select: none;
  186.   opacity: 0.5;
  187.   position: absolute;
  188.   z-index: 2147483647; /* max value for this property */
  189. }
  190.  
  191. span[\_moz_anonclass="mozResizingInfo"] {
  192.   font-family: sans-serif;
  193.   font-size: x-small;
  194.   color: black;
  195.   background-color: #d0d0d0;
  196.   border: ridge 2px #d0d0d0;
  197.   padding: 2px;
  198.   position: absolute;
  199.   z-index: 2147483647; /* max value for this property */
  200. }
  201.  
  202. img[\_moz_resizing] {
  203.   outline: thin solid black;
  204. }
  205.  
  206. *[\_moz_abspos] {
  207.   outline: silver ridge 2px;
  208.   z-index: 2147483645 !important; /* max value -2 for this property */
  209. }
  210. *[\_moz_abspos="white"] {
  211.   background-color: white !important;
  212. }
  213. *[\_moz_abspos="black"] {
  214.   background-color: black !important;
  215. }
  216.  
  217. span[\_moz_anonclass="mozGrabber"] {
  218.   outline: ridge 2px silver;
  219.   padding: 2px;
  220.   position: absolute;
  221.   width: 12px;
  222.   height: 12px;
  223.   background-image: url("resource://gre/res/grabber.gif");
  224.   background-repeat: no-repeat;
  225.   background-position: center center;
  226.   -moz-user-select: none;
  227.   cursor: move;
  228.   z-index: 2147483647; /* max value for this property */
  229. }
  230.  
  231. /* INLINE TABLE EDITING */
  232.  
  233. a[\_moz_anonclass="mozTableAddColumnBefore"] {
  234.   position: absolute;
  235.   z-index: 2147483647; /* max value for this property */
  236.   text-decoration: none !important;
  237.   border: none 0px !important;
  238.   width: 4px;
  239.   height: 8px;
  240.   background-image: url("resource://gre/res/table-add-column-before.gif");
  241.   background-repeat: no-repeat;
  242.   background-position: center center;
  243.   -moz-user-select: none !important;
  244.   -moz-user-focus: none !important;
  245. }
  246.  
  247. a[\_moz_anonclass="mozTableAddColumnBefore"]:hover {
  248.   background-image: url("resource://gre/res/table-add-column-before-hover.gif");
  249. }
  250.  
  251. a[\_moz_anonclass="mozTableAddColumnBefore"]:active {
  252.   background-image: url("resource://gre/res/table-add-column-before-active.gif");
  253. }
  254.  
  255. a[\_moz_anonclass="mozTableAddColumnAfter"] {
  256.   position: absolute;
  257.   z-index: 2147483647; /* max value for this property */
  258.   text-decoration: none !important;
  259.   border: none 0px !important;
  260.   width: 4px;
  261.   height: 8px;
  262.   background-image: url("resource://gre/res/table-add-column-after.gif");
  263.   background-repeat: no-repeat;
  264.   background-position: center center;
  265.   -moz-user-select: none !important;
  266.   -moz-user-focus: none !important;
  267. }
  268.  
  269. a[\_moz_anonclass="mozTableAddColumnAfter"]:hover {
  270.   background-image: url("resource://gre/res/table-add-column-after-hover.gif");
  271. }
  272.  
  273. a[\_moz_anonclass="mozTableAddColumnAfter"]:active {
  274.   background-image: url("resource://gre/res/table-add-column-after-active.gif");
  275. }
  276.  
  277. a[\_moz_anonclass="mozTableRemoveColumn"] {
  278.   position: absolute;
  279.   z-index: 2147483647; /* max value for this property */
  280.   text-decoration: none !important;
  281.   border: none 0px !important;
  282.   width: 8px;
  283.   height: 8px;
  284.   background-image: url("resource://gre/res/table-remove-column.gif");
  285.   background-repeat: no-repeat;
  286.   background-position: center center;
  287.   -moz-user-select: none !important;
  288.   -moz-user-focus: none !important;
  289. }
  290.  
  291. a[\_moz_anonclass="mozTableRemoveColumn"]:hover {
  292.   background-image: url("resource://gre/res/table-remove-column-hover.gif");
  293. }
  294.  
  295. a[\_moz_anonclass="mozTableRemoveColumn"]:active {
  296.   background-image: url("resource://gre/res/table-remove-column-active.gif");
  297. }
  298.  
  299. a[\_moz_anonclass="mozTableAddRowBefore"] {
  300.   position: absolute;
  301.   z-index: 2147483647; /* max value for this property */
  302.   text-decoration: none !important;
  303.   border: none 0px !important;
  304.   width: 8px;
  305.   height: 4px;
  306.   background-image: url("resource://gre/res/table-add-row-before.gif");
  307.   background-repeat: no-repeat;
  308.   background-position: center center;
  309.   -moz-user-select: none !important;
  310.   -moz-user-focus: none !important;
  311. }
  312.  
  313. a[\_moz_anonclass="mozTableAddRowBefore"]:hover {
  314.   background-image: url("resource://gre/res/table-add-row-before-hover.gif");
  315. }
  316.  
  317. a[\_moz_anonclass="mozTableAddRowBefore"]:active {
  318.   background-image: url("resource://gre/res/table-add-row-before-active.gif");
  319. }
  320.  
  321. a[\_moz_anonclass="mozTableAddRowAfter"] {
  322.   position: absolute;
  323.   z-index: 2147483647; /* max value for this property */
  324.   text-decoration: none !important;
  325.   border: none 0px !important;
  326.   width: 8px;
  327.   height: 4px;
  328.   background-image: url("resource://gre/res/table-add-row-after.gif");
  329.   background-repeat: no-repeat;
  330.   background-position: center center;
  331.   -moz-user-select: none !important;
  332.   -moz-user-focus: none !important;
  333. }
  334.  
  335. a[\_moz_anonclass="mozTableAddRowAfter"]:hover {
  336.   background-image: url("resource://gre/res/table-add-row-after-hover.gif");
  337. }
  338.  
  339. a[\_moz_anonclass="mozTableAddRowAfter"]:active {
  340.   background-image: url("resource://gre/res/table-add-row-after-active.gif");
  341. }
  342.  
  343. a[\_moz_anonclass="mozTableRemoveRow"] {
  344.   position: absolute;
  345.   z-index: 2147483647; /* max value for this property */
  346.   text-decoration: none !important;
  347.   border: none 0px !important;
  348.   width: 8px;
  349.   height: 8px;
  350.   background-image: url("resource://gre/res/table-remove-row.gif");
  351.   background-repeat: no-repeat;
  352.   background-position: center center;
  353.   -moz-user-select: none !important;
  354.   -moz-user-focus: none !important;
  355. }
  356.  
  357. a[\_moz_anonclass="mozTableRemoveRow"]:hover {
  358.   background-image: url("resource://gre/res/table-remove-row-hover.gif");
  359. }
  360.  
  361. a[\_moz_anonclass="mozTableRemoveRow"]:active {
  362.   background-image: url("resource://gre/res/table-remove-row-active.gif");
  363. }
  364.